package com.andy.qi.repository;

import java.util.List;

import org.springframework.data.repository.Repository;

import com.andy.qi.domain.Game;
import com.andy.qi.domain.GameArchive;

public interface GameRepository extends Repository<Game, String> {

    boolean exists(String id);
    
    void save(Game obj);

    GameArchive findOne(String id);

    List<Game> findAllByIdRoomUuid(String roomUuid);
    
    Game findOneByIdRoomUuidAndIdGameIndex(String roomUuid, int index);
}
